package com.giggle.demo.mapper;

import com.giggle.demo.domain.UserStartEo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserStartEoMapper extends Mapper<UserStartEo> {

    @Select("select * from user_start_${tableNum} where create_time < now() and name = #{userStartEo.name}")
    List<UserStartEo> selectList(@Param("tableNum") String tableNum,@Param("userStartEo") UserStartEo userStartEo);
}